package com.accp.demo.mapper.stock;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.accp.demo.pojo.stock.StockReportoryDetail;

public interface IStockReportoryDetailMapper {
		void insert(StockReportoryDetail stockReportoryDetail);
		Integer count();
		void delete(@Param("infoId")int infoId);
		
		void update(StockReportoryDetail stockReportoryDetail);
		StockReportoryDetail findById(@Param("wareNo")int wareNo,@Param("materialNo")String materialNo,@Param("orderForm")int orderForm,@Param("orderNoForm")String orderNoForm);
		List<StockReportoryDetail> findByMap(@Param("map")Map<String,Object> map);
		
		//分仓移动加权平均算法
		StockReportoryDetail findDetail(@Param("wareNo")int wareNo,@Param("materialNo")String materialNo,@Param("orderForm")int orderForm);
		
}
